package com.study.singlemode;

public class Test2 {
    public static void main(String[] args) {
        //懒汉式单例模式：获取对象时，才开始创建对象
        Student2 s = Student2.getStudent2();
        Student2 s2 = Student2.getStudent2();
        System.out.println(s==s2);
    }
}
